﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Pout_Porri.Objects.Bosses
{
    class Bowser :Boss
    {
        private Vector2 initialPosition;
        private float range = 50;

        public Bowser(Texture2D image, Vector2 position, Vector2 velocity, int life)
            : base(image, position, velocity, life)
        {
            initialPosition = position;
            
        }

        public override void update(GameTime gameTime)
        {
            applyMovement();
            if (this.position.X >= initialPosition.X + range)
            {
                this.direction.X *= -1;
            }

            base.update(gameTime);
        }
    }
}
